package com.dony.shop.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dony.shop.domain.ShopeeMerchant;

import java.util.List;

/**
 * 授权店铺Service接口
 *
 * @author octv
 * @date 2022-03-08
 */
public interface IShopeeMerchantService extends IService<ShopeeMerchant> {

    ShopeeMerchant getByMerchantId(Long merchantId);

    void updateToken(ShopeeMerchant merchant);

    String selectLastRefreshToken(Long merchantId);

    void setAuth(Long merchantId, boolean auth);

    List<ShopeeMerchant> listByParam(ShopeeMerchant merchant);

    boolean updateRemark(ShopeeMerchant merchant);

    List<ShopeeMerchant> listByTenant();

    Long getTenantByMerchant(Long merchantId);
}
